from typing import Any

from app import db, User, app

with app.app_context():
    user: User = db.session.get(User,1)
    user.name = "孙建庆"
    user.username = "dxdxx"
    user.organization_id = 1
    user.set_password("dxd123!")

    db.session.commit()

    user: User = db.session.get(User,2)
    user.name = "于云飞"
    user.username = "gsdxx"
    user.organization_id = 2
    user.set_password("gsd123!")
    db.session.commit()

    user: User = db.session.get(User,3)
    user.name = "孙春艳"
    user.username = "lsdxx"
    user.organization_id = 3
    user.set_password("lsd123!")
    db.session.commit()

    user: User = db.session.get(User,4)
    user.name = "王廷深"
    user.username = "yjkxx"
    user.organization_id = 4
    user.set_password("gsd123!")
    db.session.commit()

    user: User = db.session.get(User,5)
    user.name = "zzw"
    user.username = "dxdxq"
    user.organization_id = 5
    user.set_password("dxdxq123")
    db.session.commit()